import { post, get } from '@/helpers/request'

export const getMyLeaveForms = (page, limit, userId, type = '', status = '') => post('/getMyLeaveForms', { page, limit, status, userId, type })

export const getAllLeaveForms = (page, limit, userId, userName, type = '', status = '') => post('/getAllLeaveForms', { page, limit, status, userName, userId, type })
export const getAllUsersLeaveForms = (page, limit, userId, userName, type = '', status = '') => post('/getAllUsersLeaveForms', { page, limit, status, userName, userId, type })

export const getStatistics = (userId) => post('/getStatistics', { userId })

export const getAuditProcedures = (id) => post('/getAuditProcedures', { id })
